import http from '@/utils/fetch'

export function login(params) {
  return http.post('/Supplier/Login', params)
}

export function logout() {
  return http.get('/Supplier/LoginOut')
}

// 获取用户菜单权限
export function getAuthRule() {
  return http.post('/Supplier/Auth/getAuthRule')
}

// 获取验证码
export function sendMobileCode(mobile) {
  return http.post('/Supplier/Verify/sendCode', { mobile }, true)
}

// 编辑密码
export function editPwd(params) {
  return http.post('/Supplier/Auth/editPwd', params)
}

// 忘记密码
export function forgetPwd(params) {
  return http.post('/Supplier/Login/forgetPwd', params)
}
